class Vehicle(object):
    def __init__(self, maxSpeed, weight):
        self.__maxSpeed = maxSpeed
        self.__weight = weight
    def print(self):
        print(self.__maxSpeed,self.__weight)

class Bicycle(Vehicle):
    def __init__(self, maxSpeed, weight, height):
        Vehicle.__init__(self, maxSpeed, weight)
        self.__height = height

    def setMaxSpeed(self, maxSpeed):
        self.__maxSpeed = maxSpeed

    @property
    def height(self):
        return self.__height

    @height.setter
    def height(self, height):
        self.__height = height

    @height.deleter
    def height(self):
        del self.__height

    def print(self):
        Vehicle.print(self)
        print(self.__height)


if __name__ == "__main__":
    bicycle = Bicycle(200, 100, 100)
    bicycle.print()
    bicycle.setMaxSpeed(100)
    bicycle.print()
    bicycle.height=200
    bicycle.print()
    del bicycle.height
    print(hasattr(bicycle,"height"))
